//
//  NoCardsDataView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "NoCardsDataView.h"

@implementation NoCardsDataView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        
        GLGWImageView *imgV = [[GLGWImageView alloc] initInSuperView:self];
        [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self).offset(kHeightProportion_In_iPhoneTriploid(75));
            make.centerX.equalTo(self.mas_centerX);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(63)));
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(64)));
        }];
        imgV.image = [UIImage imageNamed:@"Qcode_p"];
        
        GLGWLabel *lab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        lab.text = @"未绑定银行卡~";
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(imgV.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(18));
            make.centerX.equalTo(imgV.mas_centerX);
        }];
    }
    return self;
}

@end
